package com.ruoyi.order.controller;


import com.ruoyi.common.core.dto.order.OrderDto;
import com.ruoyi.order.feign.DroolsFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;

@RestController
@RequestMapping("drools")
public class DroolsController {

    @Autowired
    private DroolsFeignService droolsFeignService;
    @PostMapping
    public String getFee(){
        OrderDto orderDto = new OrderDto();
        orderDto.setDistance(200);
        orderDto.setWeight(20);
        String cal = droolsFeignService.orderDrools(orderDto);
        return cal;
    }
}
